package com.guigusuqi.hy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 副卡管理
 * </p>
 *
 * @author suqi
 * @since 2022-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hy_deputy_card")
@ApiModel(value="DeputyCard对象", description="副卡管理")
public class DeputyCard implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "主卡编号")
    private String parentNum;

    @ApiModelProperty(value = "主卡人")
    private String parentPerson;

    @ApiModelProperty(value = "副卡人联系电话")
    private String parentMobile;

    @ApiModelProperty(value = "主卡类型")
    private String parentType;

    @ApiModelProperty(value = "会员卡号")
    private String cardNum;

    @ApiModelProperty(value = "副卡类型")
    private String cardType;

    @ApiModelProperty(value = "用户编号")
    private String userId;

    @ApiModelProperty(value = "副卡人姓名")
    private String userName;

    @ApiModelProperty(value = "副卡人联系电话")
    private String userMobile;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "更新者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic(value = "0" ,delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;


}
